import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'
const Random = Mock.Random;

// 获取应用数据
mock.onGet('v7/indexappmenu').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, {
        name: 'appmenu',
        items:  [
            {
	id: 'EC656897-BD3A-4FF7-8DCD-7A35D6AEF3EF',
	name: 'menuitem2',
	text: '项目',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '项目',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: true,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc',
	resourcetag: '',
},
            {
	id: '96BCB97D-245F-46A4-BBB7-1ACDF4664651',
	name: 'menuitem1',
	text: '我的任务',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '我的任务',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc5',
	resourcetag: '',
},
            {
	id: '024183A1-7504-4D17-BEA8-44E22CBEB0FB',
	name: 'menuitem4',
	text: '项目信息',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '项目信息',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc4',
	resourcetag: '',
},
            {
	id: '411BD3E9-52EA-43A4-A96A-F6B466AD1B0B',
	name: 'menuitem5',
	text: '任务看板',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '任务看板',
	expanded: false,
	separator: false,
	hidden: true,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc6',
	resourcetag: '',
},
            {
	id: 'DE3A4974-FD28-4379-AD12-2E9D29C24B56',
	name: 'menuitem6',
	text: '任务信息看板',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '任务信息看板',
	expanded: false,
	separator: false,
	hidden: true,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc6',
	resourcetag: '',
},
            {
	id: '398CEC33-4556-4AEC-9338-01CC79DA7606',
	name: 'menuitem7',
	text: '简单项目编辑视图',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '简单项目编辑视图',
	expanded: false,
	separator: false,
	hidden: true,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc7',
	resourcetag: '',
},
            {
	id: '2F0CADF5-6F27-4566-B378-454AE5A588E8',
	name: 'menuitem3',
	text: '已关闭任务',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '已关闭任务',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc3',
	resourcetag: '',
},
            {
	id: 'C2C7F2FD-A6BE-4210-805D-64D8F9FF6C75',
	name: 'menuitem8',
	text: '项目成员',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '项目成员',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc8',
	resourcetag: '',
},
        ],
    }];
});

